/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.valstorm.facade;

import br.valstorm.dao.UserDAO;
import br.valstorm.model.User;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author rgrunitzki
 */
@Stateless
public class UserFacadeImp implements UserFacade {

    @EJB
    private UserDAO userDAO;

    @Override
    public void save(User object) {
        userDAO.save(object);
    }

    @Override
    public User update(User object) {
        return userDAO.update(object);
    }

    @Override
    public void delete(User object) {
        userDAO.delete(object);
    }

    @Override
    public User find(Long entityID) {
        return userDAO.find(entityID);
    }

    @Override
    public List<User> findAll() {
        return userDAO.findAll();

    }

}
